////////////////////////////////////////////////////////////////////////////////////////
// Stauffer Public Perceptions of Women's Inclusion and Feelings of Political Efficacy
// Replication Code - Appendix 8 
///////////////////////////////////////////////////////////////////////////////////////


***********
// TABLE A9
***********

*set working directory
use 17_CCES.dta, clear 

/// Models with New Measures: Absolute Value

meoprobit state_responsive gender_r c.ab_diff gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age  white coll employed religiosity ||StateAbbr: 

estimates store new_absa 

meoprobit state_responsive c.ab_diff##gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age  white coll employed religiosity ||StateAbbr: 

estimates store new_absb

/// Models with New Measures: Absolute Value*Under
meoprobit state_responsive i.gender_r c.ab_diff##i.over c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age  white coll employed religiosity ||StateAbbr: 

estimates store new_undera

meoprobit state_responsive c.ab_diff##i.over##i.gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age  white coll employed religiosity ||StateAbbr: 

estimates store new_underb

*Generate Code for LaTex tables 
estout new_absa new_absb new_undera new_underb, cells(b(star fmt(%9.3f)) se(par)) ///
style(tex) stats(N) nobaselevels interaction ("X") starlevels (* .1 ** .05 *** .01)


